import { AfterViewInit, Component, ContentChildren, Input, QueryList } from '@angular/core';
import { Istudent } from 'src/app/istudent';
import { StudentFootComponent } from '../student-foot/student-foot.component';

@Component({
  selector: 'app-student-list-foot',
  templateUrl: './student-list-foot.component.html',
  styleUrls: ['./student-list-foot.component.scss']
})
export class StudentListFootComponent implements AfterViewInit{

  

  @Input()
  studentList:Istudent[]=[];

  @ContentChildren(StudentFootComponent) studentfoots:QueryList<StudentFootComponent>
                = new QueryList<StudentFootComponent>();

  ngAfterViewInit(): void {
    console.log(this.studentfoots);

  }
  
}
